<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>methods实现原理</title>
<!--    引入我们自己的vue.js-->
    <script src="js/myvue.js"></script>
</head>
<body>
<!--vue程序-->
<script>
    const vm = new Vue({
        data : {
            msg : 'hello vue!'
        },
        methods : {
            sayHi(){
                console.log(this.msg)
            }
        }
    })

</script>
</body>
</html>